﻿@{
    ViewBag.Title = "MembersUpdate";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    $(function () {
        $.ajax({
            url: "/SystemManage/User/GetMemberJson",
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);
            }
        });
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/SystemManage/User/SubmitMember",
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        @*<ul class="nav nav-tabs">
        <li class="active"><a href="#">基本信息</a></li>padding-top: 20px;
    </ul>*@
        <div style=" margin-right: 30px;">
            <table class="form">
                <tr>
                    <th class="formTitle">会员ID</th>
                    <td class="formValue" colspan="3">
                        <input id="F_Account" name="F_Account" type="text" class="form-control required" readonly  />
                    </td>                    
                </tr>
                <tr>
                    <th class="formTitle">推荐人ID</th>
                    <td class="formValue">
                        <input id="ReferenceAccount" name="ReferenceAccount" type="text" class="form-control" readonly/>
                    </td>
                    <th class="formTitle">推荐人姓名</th>
                    <td class="formValue">
                        <input id="ReferenceName" name="ReferenceName" type="text" class="form-control" readonly/>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">会员姓名</th>
                    <td class="formValue" colspan="3">
                        <input id="F_RealName" name="F_RealName" type="text" class="form-control required" readonly/>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">身份证号</th>
                    <td class="formValue" colspan="3">
                        <input id="F_CardId" name="F_CardId" type="text" class="form-control required" readonly />
                    </td>                    
                </tr>
                <tr>
                    <th class="formTitle">账户余额</th>
                    <td class="formValue" colspan="3">
                        <input id="F_MemberMoney" name="F_MemberMoney" type="text" class="form-control" readonly />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">联系方式</th>
                    <td class="formValue" colspan="3">
                        <input id="F_MobilePhone" name="F_MobilePhone" type="text" class="form-control required" placeholder="请输入联系方式" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">银行开户名</th>
                    <td class="formValue" colspan="3">
                        <input id="F_AccountName" name="F_AccountName" type="text" class="form-control required" placeholder="请输入银行开户名" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">银行账号</th>
                    <td class="formValue" colspan="3">
                        <input id="F_BankAccount" name="F_BankAccount" type="text" class="form-control required " placeholder="*(使用存折号无效 只能是建行农行工行)"/>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">开户银行</th>
                    <td class="formValue" colspan="3">
                        <input id="F_Bank" name="F_Bank" type="text" class="form-control" placeholder="请输入开户银行"/>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">开户行所在省市</th>
                    <td class="formValue" colspan="3">
                        <input id="F_BankAddre" name="F_BankAddre" type="text" class="form-control required" placeholder="请输入开户所在省市" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">收货地址</th>
                    <td class="formValue" colspan="3">
                        <input id="F_Address" name="F_Address" type="text" class="form-control required" placeholder="请输入收货地址" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="padding: 0px;height: 40px;line-height: 36px;text-align: right;border-top: 1px solid #ddd;background-color: #eee;position: absolute;top: 100%;margin-top: -50px;width: 100%;padding-right: 6px;">
        <a id="btn_finish" class="btn btn-default" onclick="submitForm()">完成</a>
    </div>
</form>

